package com.example.weather.service.impl;

import com.example.weather.entity.User;
import com.example.weather.mapper.UserMapper;
import com.example.weather.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户信息 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-02-06
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public void insertBatch(List<User> userList) {
         userMapper.insertBatch(userList);
    }
}
